<?php
/**
* $Id: init.php 136 2010-04-30 23:05:28Z bwanglei $
*/

if (!isset($_SESSION)) session_start();

include_once(dirname(dirname(__FILE__)).'/config.php');
include_once(BASE_PATH.'/includes/function_base.php');
include_once(BASE_PATH.'/includes/function_query.php');
include_once(BASE_PATH.'/includes/function_login.php');

$mysql_conn = apf_mysql_conn();	// 取得 mysqli 连接对象
$apf_settings = apf_get_settings($mysql_conn, 'apf_setting');

if (!apf_is_login($mysql_conn)) {
	apf_redirect(0, $apf_settings['base_url'].'/login.php');
	die ('您还没有登录！');
}
?>
